﻿@using Smartstore.Web.Models.Catalog
@using Smartstore.Core.Catalog

@model CategoryModel
@{
    Layout = "_Layout.Mobile";
    var categoryName = Model.FullName.Value.HasValue() ? Model.FullName : Model.Name;

    Assets.AppendTitleParts(Model.MetaTitle.HasValue() ? Model.MetaTitle : Model.Name);
    Assets.AppendMetaDescriptionParts(Model.MetaDescription);
    Assets.AppendMetaKeywordsParts(Model.MetaKeywords);

    if (Model.CanonicalUrl.HasValue())
    {
        Assets.AppendCanonicalUrlParts(Model.CanonicalUrl);
    }

}
<link href="~/css/2.css" rel="stylesheet" />
<style>
    taro-checkbox-core, taro-checkbox-group-core, taro-radio-core, taro-radio-group-core, taro-swiper-core, taro-swiper-item-core, taro-audio-core, taro-block-core, taro-button-core, taro-camera-core, taro-canvas-core, taro-cover-image-core, taro-cover-view-core, taro-custom-wrapper-core, taro-form-core, taro-icon-core, taro-image-core, taro-input-core, taro-label-core, taro-movable-area-core, taro-movable-view-core, taro-navigator-core, taro-open-data-core, taro-picker-view-column-core, taro-picker-view-core, taro-progress-core, taro-pull-to-refresh, taro-rich-text-core, taro-scroll-view-core, taro-slider-core, taro-switch-core, taro-tabbar, taro-text-core, taro-textarea-core, taro-view-core, taro-web-view-core, taro-picker-core, taro-picker-group, taro-video-core, taro-video-control, taro-video-danmu {
        visibility: hidden
    }

    .hydrated {
        visibility: inherit
    }
</style>
<link href="~/css/msearch.6ac595af.css" rel="stylesheet" />
<widget target-zone="header">
    <partial name="Mobile.Header.Category" model="Model.Products" />
</widget>
<div class="taro-tabbar__container" id="container">
    <div class="taro-tabbar__panel">
        <div id="app" class="taro_router">
            <div>
                <div id="/index.html?searchFrom=home&amp;swbr=1" class="taro_page">
                    <taro-view-core class="cate_wrap hydrated" style="margin-top: 0px;">
                        <taro-scroll-view-core class="cate_root_list taro-scroll-view__scroll-y hydrated"
                                               scrolly="true" scrollwithanimation="true" enhanced="true">
                            <partial name="Category.Mobile.Primary" model="Model.Menus" />
                        </taro-scroll-view-core>
                        <taro-scroll-view-core id="cateScrollView" class="ca_wrap taro-scroll-view__scroll-y hydrated"
                                               scrolly="true" scrollwithanimation="true" enhanced="true">
                            <taro-view-core class="ca_container hydrated">
                                <!---->
                            </taro-view-core>
                            <taro-view-core class="ca_container hydrated">
                                <!---->
                                <partial name="Category.Mobile.Secondary" model="Model.Menus" />
                                @if (Model.Products != null)
                                {
                                    <partial name="Product.List.Mobile" model="Model.Products" />
                                }
                            </taro-view-core>
                        </taro-scroll-view-core>
                    </taro-view-core>
                </div>
            </div>
        </div>
    </div>
</div>
